﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GetTemplate.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.Window.GetTemplate" %>


<!doctype html>
<html>
<head runat="server">
    <title>网页编码</title>
    <meta charset="utf-8">
    <meta content="no-cache" http-equiv="Pragma" />
    <%: Scripts.Render("~/Scripts/AdminBase") %>
    

    <%: Styles.Render("~/Content/Bootstrap/css") %>

    

    <style type="text/css">
        .BB
        {
            border: 1px solid #FFFFFF;
            background-color: #FFFFFF;
        }
    </style>

    <script type="text/javascript">
        function ClickRetrun(v)
        {
            var control = Request.QueryString("Control");
            if (control == null)
            {
                control = "#txtTemplateFileName";
            }
            parent.$("#" + control).val(v);
            parent.$("#dialog-modal").dialog("close");
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div style="width: 450px">
                <asp:DropDownList ID="DropDownList1" runat="server" Width="98%" AutoPostBack="True"
                    OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                </asp:DropDownList>
                <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" DataKeyNames="FullName"
                    OnRowCommand="GV_List_RowCommand" Width="100%" GridLines="None" CssClass="table table-bordered table-condensed table-hover">
                    <Columns>
                        <asp:TemplateField HeaderText="名称">
                            <ItemTemplate>
                                <img src="../Images/FileICO/<%# Eval("ICO") %>" alt="" onerror="this.src='../Images/FileICO/err.gif'" />
                                <asp:Button CommandName="GOTO" runat="server" CommandArgument='<%# Eval("FullName") %>' Text='<%# Eval("Name") %>' CssClass="BB" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="选择">
                            <ItemTemplate>
                                <%# Eval("Get") %>
                            </ItemTemplate>
                            <HeaderStyle Width="100px" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle CssClass="HeaderStyle" />
                </asp:GridView>
             </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
